package com.example.demoweb.constant;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by lihaitao on 2017/9/21.
 */
public class Constants {
	/*@Autowired
	private FtpProperties ftp;*/
	
	public static String DEFAULT_ENCODING = "UTF-8";

    // 日期格式
    public static final String FORMAT_DATE_YYYYMMDD = "yyyy/MM/dd";
    public static final String FORMAT_DATE_YYYYMD = "yyyy/M/d";
    public static final String YYYY_MM_DD = "yyyy-MM-dd";
    public static final String FORMAT_FULL_DATE = "yyyy-MM-dd HH:mm:ss";
    public static final String FORMAT_MMDDHHMM = "MM-dd HH:mm";
    public static final String FORMAT_YYYYMMDDHHMM = "YYYY-MM-dd HH:mm";

    // 逗号
    public static final String COMMA = ",";
    // 冒号
    public static final String COLON = ":";
    // 空白
    public static final String BLANK = "";
    // 空格
    public static final String SPACE = " ";
    // UTF-8
    public static final String UTF8 = "UTF-8";
    // ISO8859-1
    public static final String ISO8859 = "iso8859-1";
    // GB2312
    public static final String GB2312 = "gb2312";
    
    /*********************************  返回code常量  start  *******************************************/
	/*
	 * 返给前端的标识(0为请求成功且返回为true的唯一标志)
	 */
	public static final String SUCCESS_CODE = "0";
	/*
	 * 返给前端的标识(1为请求失败且返回为false的唯一标识，是result所对应的编码，其他错误标识代表的是特定的异常代码，为msgcode所用的编码)
	 */
	public static final String FAIL_CODE = "1";
	
	/*
	 * 系统异常 
	 */
	public static final String FAIL_SYS_ERROR = "-1";
	
	/*
	 * 存在重复数据
	 */
	public static final String FAIL_DATA_REPEAT = "00007";
	/*
	 * 文件上传失败
	 */
	public static final String FILE_UPLOAD_ERROR = "00201";
	/*
	 * 查询条件（或其他应传的参数）不能为空
	 */
	public static final String FAIL_DATA_EMPTY = "00009";
	/*********************************  返回code常量  end  *******************************************/
    
}
